package com.jsong.linuo.controlstructure;

import java.util.Scanner;

/*
    1.else..if使用
    2.switch和if的区别:debug
        switch:会直接跳到相匹配的case
        if:从上到下挨个判断->实际开发中主要用if,灵活
 */
public class IfTest03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int data1 = sc.nextInt();
        int data2 = sc.nextInt();
        if (data1 > data2) {
            System.out.println("data1大于data2");
        } else if (data1 < data2) {
            System.out.println("data1小于data2");
        } else if (data1 == data2) {
            System.out.println("data1等于data2");
        }
    }
}
